<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Agregar Feeds</title>
        <link href="css/style.css" rel="stylesheet" type="text/css">
        <style type="text/css">
<!--
.Estilo5 {font-size: 14px; font-weight: bold; }
.Estilo9 {font-size: 10; color: #333333; }
.Estilo10 {
	font-size: 16px;
	font-style: italic;
	font-weight: bold;
}
-->
        </style>
</head>
    <body>

        <table width="100%" border="0">
            <tr>
                <td align="center">
                    <table class="tabla" width="50%" border="0">
                        <html:form  action="/newFeed" >
                            <tr>
                                <td colspan="2" align="center">
                                <table width="100%" border="0">
  <tr>
    <td width="64%"><div align="right">Registrar  FEED RSS</div></td>
    <td width="36%"><img src="images/feed.png" alt="rss" width="25" height="25"></td>
  </tr>
</table>                                </td>
                            </tr>
                            <tr>
                                <td width="23%"><div align="right">Nombre</div></td>
                              <td width="77%"><html:text  name="newFeedForm" property="nombre" /> <div align="left"></div></td>
                          </tr>
                            <tr>
                                <td><div align="right">Url</div></td>
                                <td><html:text  name="newFeedForm" property="url"/> <div align="left"></div></td>
                            </tr>

                            <tr>
                                <td colspan="2"><div align="center">
                                  <html:submit value="Agregar" />
                                </div></td>
                            </tr>
                        </html:form>
                    </table>
<html:messages id="messages" message="true">
                        <bean:write name="messages"/>
                    </html:messages>
                </td>
            </tr>
            <tr>
                <td><p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p>
                <p>&nbsp;</p></td>
            </tr>
            <tr>
                <td align="center">
                    <table class="tablaFeeds">
                        <tr>
                          <td colspan="2" bordercolor="#F0F0F0" ><p class="Estilo10">Lista de Feeds</p>
                          <p class="Estilo10">&nbsp;</p></td>
                        </tr>
                        <tr>
                            <td width="26%" bordercolor="#F0F0F0" ><span class="Estilo5">Nombre</span></td>
                          <td width="55%" ><span class="Estilo5">Url</span></td>
                      </tr>
                        <%
                                    java.util.List<negocio.Feed> lista = dao.DAOFeed.findAll();
                                    for (negocio.Feed feed : lista) {
                        %>
                        <tr>
                            <td bordercolor="#F0F0F0">
                                <span class="Estilo9"><%=feed.getNombre() %>                            </span></td>
<td>
                                <span class="Estilo9"><%=feed.getUrl() %>                            </span></td>
                      </tr>
                        <%
                                    }
                        %>
                    </table>

              </td>
            </tr>
        </table>        
        <%@ include file="include/menuAdmin.jsp" %>
    </body>
</html>
